package cn.johnyu.base.dao;

import cn.johnyu.base.model.Book;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BookMapper {
    Book findBookById(Integer id);

    List<Book> findAllBooks();

    List<Book> findBooksByPublisherId(Integer id);

    List<Book> findBooksByAuthorId(Integer id);


}
